// ignore_for_file: public_member_api_docs, sort_constructors_first

class RegisterConfigReq {
  String? gender;
  int? ifupavatar;
  String? nickname;
  String? birthday;
  String? city;
  String? pmcode;

  String? filePath;

  RegisterConfigReq({
    this.gender,
    this.ifupavatar,
    this.nickname,
    this.birthday,
    this.city,
    this.pmcode,
    this.filePath,
  });

  RegisterConfigReq copyWith({
    String? gender,
    int? ifupavatar,
    String? nickname,
    String? birthday,
    String? city,
    String? pmcode,
    String? filePath,
  }) =>
      RegisterConfigReq(
        gender: gender ?? this.gender,
        ifupavatar: ifupavatar ?? this.ifupavatar,
        nickname: nickname ?? this.nickname,
        birthday: birthday ?? this.birthday,
        city: city ?? this.city,
        pmcode: pmcode ?? this.pmcode,
        filePath: filePath ?? this.filePath,
      );

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> json = <String, dynamic>{};
    json["gender"] = gender;
    json["ifupavatar"] = ifupavatar;
    json["nickname"] = nickname;
    json["birthday"] = birthday;
    json["city"] = city;
    json["pmcode"] = pmcode;
    return json;
  }
}
